//
//  Prefix.h
//  Category
//
//  Created by jamalping on 16/4/7.
//  Copyright © 2016年 jamalping. All rights reserved.
//

#ifndef Prefix_h
#define Prefix_h

/**
 *  格式化字符串
 *
 *  @param format 格式符串
 *  @param ...    参数列表
 *
 *  @return 格式化了的字符串
 */
#define JKFormat(format, ...) [NSString stringWithFormat:format, ##__VA_ARGS__]

#define NS_SAVE_USERDEFAULT(key,object) [[NSUserDefaults standardUserDefaults] setObject:object forKey:key];[[NSUserDefaults standardUserDefaults] synchronize]

#define SYSTEM_VERSION [[[UIDevice currentDevice] systemVersion] floatValue]
#define IOS(A) [[[UIDevice currentDevice] systemVersion] floatValue] >=A&&[[[UIDevice currentDevice] systemVersion] floatValue] < (A+1)

#endif /* Prefix_h */
